<template>
  <div class="mainHeader" :class="{ activeHeader: isCollapse }">
    <div>
      <span>开题报告-查询列表</span>
      <span>
        <ReturnFirstPage />
        <span>开题报告-查询列表</span>
        <span>/</span>
      </span>
    </div>
  </div>
</template>

<script>
import ReturnFirstPage from '@/components/Function/ReturnFirstPage.vue';

export default {
  data() {
    return {
      isCollapse: false,
    };
  },
  components: {
    ReturnFirstPage,
  },
  mounted() {
    // 主体头部伸缩
    this.$bus.$on('changeMainHeader', () => {
      this.isCollapse = !this.isCollapse;
    });
  },
  beforeDestroy() {
    this.$bus.$off('changeMainHeader');
  },
};
</script>
